package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:张熳
 * Date:2025-08-23
 * Time:19:39
 */
//继承
//子类 - Dog

public class Dog extends Animal{

    public void bark(){
        System.out.println(this.name + " 正在汪汪叫...");
    }
}


